#pragma once
#include <stdlib.h>
#define MEMSIZE 16777216

struct meta_struct{  ///Meta contents TBD
	size_t size;
	// some other important data //

};

typedef struct meta_struct meta_s;


struct sMCB{

	meta_s meta;
	struct sMCB* next;
};

typedef struct sMCB MCB;
typedef MCB* MCBPtr;




void M_INIT();

size_t common_size(size_t size);
size_t find_free_space_before_first_mcb();
size_t calc_free_space_after(MCBPtr mcb);
int check_mcb(MCBPtr mcb);
MCBPtr find_free_space(size_t size);
void* my_alloc(size_t size);
MCBPtr find_previous(MCBPtr mcb);
int my_delete(void* ptr);
meta_s* get_meta (void * ptr);